"use strict";

const path = require("path");

function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
	// 配置路径别名
	configureWebpack: {
		devServer: {
			disableHostCheck: true
		},
		resolve: {
			alias: {
				"@p": resolve("pages"),
				"@r": resolve("/")
			}
		}
	}
}
